package org.jeecg.modules.tencent.handle;

import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.util.tencent.response.IMBaseResponse;
import org.jeecg.modules.abs.TencentCallBackAbstract;
import org.jeecg.modules.tencent.enums.IMCallbackEnum;
import org.jeecg.modules.tencent.util.TencentCallBackConstants;
import org.springframework.stereotype.Component;

/**
 * @author guoyh
 * @ClassName DefaultHandle
 * @Description
 * @since 2020/8/28 23:59
 **/
@Slf4j
@Component(value = TencentCallBackConstants.DEFAULT)
public class DefaultHandle extends TencentCallBackAbstract {
    @Override
    public IMCallbackEnum getHandleClass() {
        return IMCallbackEnum.DEFAULT;
    }

    @Override
    protected IMBaseResponse handle(String body) {
        return IMBaseResponse.buildSuccess();
    }
}
